#include "aerial\CreateScene.h"
// scene change
#include "aerial\MainMenuScene.h"
//guiobject
#include "aerial\Object\Button.h"
#include "aerial\Object\Panel.h"

#include "aerial\Scene\Event.h"
#include "aerial\Core\Core.h"

bool CreateScene::initialize()
{
	
	Panel* menu = new Panel(hgeResMan, 0, 0, 250, 600);
	menu->placeGuiObjectOffset(
		new Button(hgeResMan, 0.5f, "Select Room"/*,
			new SEvent<CreateScene>(this, &CreateScene::hint)*/
		), 
		40.0f, 120.0f);
	menu->placeGuiObjectOffset(
		new Button(hgeResMan, 0.5f, "Join"/*,
			new SEvent<CreateScene>(this, &CreateScene::hint)*/
		), 
		40.0f, 170.0f);
	menu->placeGuiObjectOffset(
		new Button(hgeResMan, 0.5f, "Back",
			new SEvent<CreateScene>(this, &CreateScene::back)
		), 
		40.0f, 220.0f);
	menu->addToGui(sceneManager);
	return true;
}

void CreateScene::back()
{
	sceneManager->setNextScene(new MainMenuScene());
	setSceneEnd();
	//MessageBox(NULL, L"Button Pressed", L"A.I.R", MB_OK);
}

bool CreateScene::update(float dt)
{
	return false;
}

bool CreateScene::render(float dt)
{
	hge->Gfx_Clear(0xffffffff);
	return false;
}


void CreateScene::Enter() 
{
	gui->Enter();
}

void CreateScene::Leave() 
{
	gui->Leave();
}
